//package com.kitty.game.fight.bean;
//
//import com.kitty.game.fight.service.FightExecutorService;
//import com.kitty.game.fight.task.FightingTask;
//import com.kitty.common.utils.SpringUtils;
//import com.kitty.game.fight.service.FightMessageService;
//
//public class NextRoundTask implements FightingTask {
//	private Fight fight;
//
//	public NextRoundTask(Fight fight) {
//	    super();
//		this.fight = fight;
//	}
//
//	@Override
//	public void run() {
//		SpringUtils.getBean(FightExecutorService.class).addFightTask(fight,()->{
//			FightMessageService fightMessageService = SpringUtils.getBean(FightMessageService.class);
//			if (fight.isOver()) {
//				SpringUtils.getFightService().quitFight(fight);
//			} else {
//				fightMessageService.sendPanel(fight);
//			}
//		});
//        fight.cancelTask(fight.getNextRoundTimer());
//	}
//}
